package com.paypal.android.a;

import java.io.PrintStream;

public final class a
{
  private static final byte[] a = { 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 43, 47 };
  private static final byte[] b = { -9, -9, -9, -9, -9, -9, -9, -9, -9, -5, -5, -9, -9, -5, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -5, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, 62, -9, -9, -9, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -9, -9, -9, -1, -9, -9, -9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -9, -9, -9, -9, -9, -9, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -9, -9, -9, -9 };
  private static final byte[] c = { 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 45, 95 };
  private static final byte[] d = { -9, -9, -9, -9, -9, -9, -9, -9, -9, -5, -5, -9, -9, -5, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -5, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, 62, -9, -9, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -9, -9, -9, -1, -9, -9, -9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -9, -9, -9, -9, 63, -9, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -9, -9, -9, -9 };
  private static final byte[] e = { 45, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 95, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122 };
  private static final byte[] f = { -9, -9, -9, -9, -9, -9, -9, -9, -9, -5, -5, -9, -9, -5, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -5, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, 0, -9, -9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, -9, -9, -9, -1, -9, -9, -9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, -9, -9, -9, -9, 37, -9, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -9, -9, -9, -9 };

  public static String a(byte[] paramArrayOfByte, int paramInt)
  {
    return a(paramArrayOfByte, 0, paramArrayOfByte.length, 8);
  }

  // ERROR //
  private static String a(byte[] paramArrayOfByte, int paramInt1, int paramInt2, int paramInt3)
  {
    // Byte code:
    //   0: iload_3
    //   1: bipush 8
    //   3: iand
    //   4: istore 4
    //   6: iload_3
    //   7: iconst_2
    //   8: iand
    //   9: iconst_2
    //   10: if_icmpne +169 -> 179
    //   13: new 160	java/io/ByteArrayOutputStream
    //   16: dup
    //   17: invokespecial 163	java/io/ByteArrayOutputStream:<init>	()V
    //   20: astore 20
    //   22: new 165	com/paypal/android/a/b
    //   25: dup
    //   26: aload 20
    //   28: iload_3
    //   29: iconst_1
    //   30: ior
    //   31: invokespecial 168	com/paypal/android/a/b:<init>	(Ljava/io/OutputStream;I)V
    //   34: astore 21
    //   36: new 170	java/util/zip/GZIPOutputStream
    //   39: dup
    //   40: aload 21
    //   42: invokespecial 173	java/util/zip/GZIPOutputStream:<init>	(Ljava/io/OutputStream;)V
    //   45: astore 22
    //   47: aload 22
    //   49: aload_0
    //   50: iconst_0
    //   51: iload_2
    //   52: invokevirtual 177	java/util/zip/GZIPOutputStream:write	([BII)V
    //   55: aload 22
    //   57: invokevirtual 180	java/util/zip/GZIPOutputStream:close	()V
    //   60: aload 22
    //   62: invokevirtual 180	java/util/zip/GZIPOutputStream:close	()V
    //   65: aload 21
    //   67: invokevirtual 181	com/paypal/android/a/b:close	()V
    //   70: aload 20
    //   72: invokevirtual 182	java/io/ByteArrayOutputStream:close	()V
    //   75: new 184	java/lang/String
    //   78: dup
    //   79: aload 20
    //   81: invokevirtual 188	java/io/ByteArrayOutputStream:toByteArray	()[B
    //   84: ldc 190
    //   86: invokespecial 193	java/lang/String:<init>	([BLjava/lang/String;)V
    //   89: astore 34
    //   91: aload 34
    //   93: areturn
    //   94: astore 23
    //   96: aconst_null
    //   97: astore 21
    //   99: aconst_null
    //   100: astore 22
    //   102: aconst_null
    //   103: astore 20
    //   105: aload 23
    //   107: invokevirtual 196	java/io/IOException:printStackTrace	()V
    //   110: aload 22
    //   112: invokevirtual 180	java/util/zip/GZIPOutputStream:close	()V
    //   115: aload 21
    //   117: invokevirtual 181	com/paypal/android/a/b:close	()V
    //   120: aload 20
    //   122: invokevirtual 182	java/io/ByteArrayOutputStream:close	()V
    //   125: aconst_null
    //   126: areturn
    //   127: astore 30
    //   129: aconst_null
    //   130: areturn
    //   131: astore 38
    //   133: aconst_null
    //   134: astore 21
    //   136: aconst_null
    //   137: astore 22
    //   139: aconst_null
    //   140: astore 20
    //   142: aload 38
    //   144: astore 24
    //   146: aload 22
    //   148: invokevirtual 180	java/util/zip/GZIPOutputStream:close	()V
    //   151: aload 21
    //   153: invokevirtual 181	com/paypal/android/a/b:close	()V
    //   156: aload 20
    //   158: invokevirtual 182	java/io/ByteArrayOutputStream:close	()V
    //   161: aload 24
    //   163: athrow
    //   164: astore 35
    //   166: new 184	java/lang/String
    //   169: dup
    //   170: aload 20
    //   172: invokevirtual 188	java/io/ByteArrayOutputStream:toByteArray	()[B
    //   175: invokespecial 199	java/lang/String:<init>	([B)V
    //   178: areturn
    //   179: iload 4
    //   181: ifne +130 -> 311
    //   184: iconst_1
    //   185: istore 5
    //   187: iload_2
    //   188: iconst_2
    //   189: ishl
    //   190: iconst_3
    //   191: idiv
    //   192: istore 6
    //   194: iload_2
    //   195: iconst_3
    //   196: irem
    //   197: ifle +120 -> 317
    //   200: iconst_4
    //   201: istore 7
    //   203: iload 6
    //   205: iload 7
    //   207: iadd
    //   208: istore 8
    //   210: iload 5
    //   212: ifeq +111 -> 323
    //   215: iload 6
    //   217: bipush 76
    //   219: idiv
    //   220: istore 9
    //   222: iload 9
    //   224: iload 8
    //   226: iadd
    //   227: newarray byte
    //   229: astore 10
    //   231: iload_2
    //   232: iconst_2
    //   233: isub
    //   234: istore 11
    //   236: iconst_0
    //   237: istore 12
    //   239: iconst_0
    //   240: istore 13
    //   242: iconst_0
    //   243: istore 14
    //   245: iload 13
    //   247: iload 11
    //   249: if_icmpge +80 -> 329
    //   252: aload_0
    //   253: iload 13
    //   255: iconst_3
    //   256: aload 10
    //   258: iload 14
    //   260: iload_3
    //   261: invokestatic 202	com/paypal/android/a/a:a	([BII[BII)[B
    //   264: pop
    //   265: iload 12
    //   267: iconst_4
    //   268: iadd
    //   269: istore 19
    //   271: iload 5
    //   273: ifeq +25 -> 298
    //   276: iload 19
    //   278: bipush 76
    //   280: if_icmpne +18 -> 298
    //   283: aload 10
    //   285: iload 14
    //   287: iconst_4
    //   288: iadd
    //   289: bipush 10
    //   291: bastore
    //   292: iinc 14 1
    //   295: iconst_0
    //   296: istore 19
    //   298: iinc 13 3
    //   301: iinc 14 4
    //   304: iload 19
    //   306: istore 12
    //   308: goto -63 -> 245
    //   311: iconst_0
    //   312: istore 5
    //   314: goto -127 -> 187
    //   317: iconst_0
    //   318: istore 7
    //   320: goto -117 -> 203
    //   323: iconst_0
    //   324: istore 9
    //   326: goto -104 -> 222
    //   329: iload 13
    //   331: iload_2
    //   332: if_icmpge +22 -> 354
    //   335: aload_0
    //   336: iload 13
    //   338: iload_2
    //   339: iload 13
    //   341: isub
    //   342: aload 10
    //   344: iload 14
    //   346: iload_3
    //   347: invokestatic 202	com/paypal/android/a/a:a	([BII[BII)[B
    //   350: pop
    //   351: iinc 14 4
    //   354: new 184	java/lang/String
    //   357: dup
    //   358: aload 10
    //   360: iconst_0
    //   361: iload 14
    //   363: ldc 190
    //   365: invokespecial 205	java/lang/String:<init>	([BIILjava/lang/String;)V
    //   368: astore 15
    //   370: aload 15
    //   372: areturn
    //   373: astore 16
    //   375: new 184	java/lang/String
    //   378: dup
    //   379: aload 10
    //   381: iconst_0
    //   382: iload 14
    //   384: invokespecial 207	java/lang/String:<init>	([BII)V
    //   387: areturn
    //   388: astore 31
    //   390: goto -325 -> 65
    //   393: astore 32
    //   395: goto -325 -> 70
    //   398: astore 33
    //   400: goto -325 -> 75
    //   403: astore 28
    //   405: goto -290 -> 115
    //   408: astore 29
    //   410: goto -290 -> 120
    //   413: astore 25
    //   415: goto -264 -> 151
    //   418: astore 26
    //   420: goto -264 -> 156
    //   423: astore 27
    //   425: goto -264 -> 161
    //   428: astore 37
    //   430: aload 37
    //   432: astore 24
    //   434: aconst_null
    //   435: astore 21
    //   437: aconst_null
    //   438: astore 22
    //   440: goto -294 -> 146
    //   443: astore 36
    //   445: aload 36
    //   447: astore 24
    //   449: aconst_null
    //   450: astore 22
    //   452: goto -306 -> 146
    //   455: astore 24
    //   457: goto -311 -> 146
    //   460: astore 23
    //   462: aconst_null
    //   463: astore 21
    //   465: aconst_null
    //   466: astore 22
    //   468: goto -363 -> 105
    //   471: astore 23
    //   473: aconst_null
    //   474: astore 22
    //   476: goto -371 -> 105
    //   479: astore 23
    //   481: goto -376 -> 105
    //
    // Exception table:
    //   from	to	target	type
    //   13	22	94	java/io/IOException
    //   120	125	127	java/lang/Exception
    //   13	22	131	finally
    //   75	91	164	java/io/UnsupportedEncodingException
    //   354	370	373	java/io/UnsupportedEncodingException
    //   60	65	388	java/lang/Exception
    //   65	70	393	java/lang/Exception
    //   70	75	398	java/lang/Exception
    //   110	115	403	java/lang/Exception
    //   115	120	408	java/lang/Exception
    //   146	151	413	java/lang/Exception
    //   151	156	418	java/lang/Exception
    //   156	161	423	java/lang/Exception
    //   22	36	428	finally
    //   36	47	443	finally
    //   47	60	455	finally
    //   105	110	455	finally
    //   22	36	460	java/io/IOException
    //   36	47	471	java/io/IOException
    //   47	60	479	java/io/IOException
  }

  private static byte[] a(byte[] paramArrayOfByte1, int paramInt1, int paramInt2, byte[] paramArrayOfByte2, int paramInt3, int paramInt4)
  {
    byte[] arrayOfByte;
    label15: int i;
    if ((paramInt4 & 0x10) == 16)
    {
      arrayOfByte = c;
      if (paramInt2 <= 0)
        break label140;
      i = paramArrayOfByte1[paramInt1] << 24 >>> 8;
      label30: if (paramInt2 <= 1)
        break label146;
    }
    int n;
    label140: label146: for (int j = paramArrayOfByte1[(paramInt1 + 1)] << 24 >>> 16; ; j = 0)
    {
      int k = j | i;
      int m = 0;
      if (paramInt2 > 2)
        m = paramArrayOfByte1[(paramInt1 + 2)] << 24 >>> 24;
      n = m | k;
      switch (paramInt2)
      {
      default:
        return paramArrayOfByte2;
        if ((paramInt4 & 0x20) == 32)
        {
          arrayOfByte = e;
          break label15;
        }
        arrayOfByte = a;
        break label15;
        i = 0;
        break label30;
      case 3:
      case 2:
      case 1:
      }
    }
    paramArrayOfByte2[paramInt3] = arrayOfByte[(n >>> 18)];
    paramArrayOfByte2[(paramInt3 + 1)] = arrayOfByte[(0x3F & n >>> 12)];
    paramArrayOfByte2[(paramInt3 + 2)] = arrayOfByte[(0x3F & n >>> 6)];
    paramArrayOfByte2[(paramInt3 + 3)] = arrayOfByte[(n & 0x3F)];
    return paramArrayOfByte2;
    paramArrayOfByte2[paramInt3] = arrayOfByte[(n >>> 18)];
    paramArrayOfByte2[(paramInt3 + 1)] = arrayOfByte[(0x3F & n >>> 12)];
    paramArrayOfByte2[(paramInt3 + 2)] = arrayOfByte[(0x3F & n >>> 6)];
    paramArrayOfByte2[(paramInt3 + 3)] = 61;
    return paramArrayOfByte2;
    paramArrayOfByte2[paramInt3] = arrayOfByte[(n >>> 18)];
    paramArrayOfByte2[(paramInt3 + 1)] = arrayOfByte[(0x3F & n >>> 12)];
    paramArrayOfByte2[(paramInt3 + 2)] = 61;
    paramArrayOfByte2[(paramInt3 + 3)] = 61;
    return paramArrayOfByte2;
  }

  private static int b(byte[] paramArrayOfByte1, int paramInt1, byte[] paramArrayOfByte2, int paramInt2, int paramInt3)
  {
    byte[] arrayOfByte = b(paramInt3);
    if (paramArrayOfByte1[(paramInt1 + 2)] == 61)
    {
      paramArrayOfByte2[paramInt2] = ((byte)(((0xFF & arrayOfByte[paramArrayOfByte1[paramInt1]]) << 18 | (0xFF & arrayOfByte[paramArrayOfByte1[(paramInt1 + 1)]]) << 12) >>> 16));
      return 1;
    }
    if (paramArrayOfByte1[(paramInt1 + 3)] == 61)
    {
      int j = (0xFF & arrayOfByte[paramArrayOfByte1[paramInt1]]) << 18 | (0xFF & arrayOfByte[paramArrayOfByte1[(paramInt1 + 1)]]) << 12 | (0xFF & arrayOfByte[paramArrayOfByte1[(paramInt1 + 2)]]) << 6;
      paramArrayOfByte2[paramInt2] = ((byte)(j >>> 16));
      paramArrayOfByte2[(paramInt2 + 1)] = ((byte)(j >>> 8));
      return 2;
    }
    try
    {
      int i = (0xFF & arrayOfByte[paramArrayOfByte1[paramInt1]]) << 18 | (0xFF & arrayOfByte[paramArrayOfByte1[(paramInt1 + 1)]]) << 12 | (0xFF & arrayOfByte[paramArrayOfByte1[(paramInt1 + 2)]]) << 6 | 0xFF & arrayOfByte[paramArrayOfByte1[(paramInt1 + 3)]];
      paramArrayOfByte2[paramInt2] = ((byte)(i >> 16));
      paramArrayOfByte2[(paramInt2 + 1)] = ((byte)(i >> 8));
      paramArrayOfByte2[(paramInt2 + 2)] = ((byte)i);
      return 3;
    }
    catch (Exception localException)
    {
      System.out.println("" + paramArrayOfByte1[paramInt1] + ": " + arrayOfByte[paramArrayOfByte1[paramInt1]]);
      System.out.println("" + paramArrayOfByte1[(paramInt1 + 1)] + ": " + arrayOfByte[paramArrayOfByte1[(paramInt1 + 1)]]);
      System.out.println("" + paramArrayOfByte1[(paramInt1 + 2)] + ": " + arrayOfByte[paramArrayOfByte1[(paramInt1 + 2)]]);
      System.out.println("" + paramArrayOfByte1[(paramInt1 + 3)] + ": " + arrayOfByte[paramArrayOfByte1[(paramInt1 + 3)]]);
    }
    return -1;
  }

  private static final byte[] b(int paramInt)
  {
    if ((paramInt & 0x10) == 16)
      return d;
    if ((paramInt & 0x20) == 32)
      return f;
    return b;
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.a.a
 * JD-Core Version:    0.6.2
 */